{% extends 'base.html' %}
{% from 'bootstrap4/form.html' import render_form %}
{% from 'bootstrap4/pagination.html' import render_pager, render_pagination %}

{% block title %}欢迎来到博客{% endblock %}
{% block head %}

<link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='css/post.css') }}">
<link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='fontawesome/css/all.css') }}">

{% endblock %}

{% block page_content %}

<div>
    {% if current_user.can(Permission.WRITE) %}
    {{ render_form(form) }}
    {% endif %}
</div>
    {% include '_posts.html' %}
    {{ render_pagination(pagination) }}
    <p>本地的日期和时间是 {{ moment(current_time).format('LLLL') }}</p>
    <p>{{ moment(current_time).fromNow(refresh=True) }}</p>
{% endblock %}

{% block scripts %}
{{ super() }}
{{ pagedown.include_pagedown() }}
{% endblock %}



